function Init(id)
	AddIntVar(id, 'age', 0)
	print('Cottage Init')
	return 1
end


function EndTurn(id)
	print('Cottage end turn, new age: '..age+1)
	age = GetIntVar(id, 'age')
	age = age + 1
	SetIntVar(id, 'age', age)
	if age = 4 then
		AddConstruction(id, 'hamlet')
	end
	return 1
end